package com.yike.user.service;

import com.yike.user.entity.PrivacyAgreement;
import com.yike.user.param.PrivacyAgreementPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.PrivacyAgreementParam;
import com.yike.user.vo.PrivacyAgreementVo;

/**
 * 隐私协议表 服务类
 *
 * @author Sakura
 * @since 2024-09-12
 */
public interface PrivacyAgreementService extends BaseService<PrivacyAgreement> {

    /**
     * 保存
     *
     * @param privacyAgreementParam
     * @return
     * @throws Exception
     */
    boolean savePrivacyAgreement(PrivacyAgreementParam privacyAgreementParam) throws Exception;

    /**
     * 修改
     *
     * @param privacyAgreementParam
     * @return
     * @throws Exception
     */
    boolean updatePrivacyAgreement(PrivacyAgreementParam privacyAgreementParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deletePrivacyAgreement(Long id) throws Exception;

    PrivacyAgreementVo getPrivacyAgreementById(Long id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param privacyAgreementPageParam
     * @return
     * @throws Exception
     */
    Paging<PrivacyAgreementVo> getPrivacyAgreementPageList(PrivacyAgreementPageParam privacyAgreementPageParam) throws Exception;

}
